package vis.ds.stack;

import processing.core.PApplet;

public class StackSketch extends PApplet { // AbstractSketch {
	private static final long serialVersionUID = 111649996972352901L;

	// private StackElem stackElem;

//	public StackSketch(String name) {
//		super(name);
//		System.out.println("Sketch Create: " + name);
//	}
//
//	@Override
//	public void init() {
//		super.init();
//		System.out.println("Sketch init!");
//		System.out.println("[w=" + this.width + ",h=" + this.height + "]");
//	}

	private Stack stack;

	@Override
	public void setup() {
		super.setup();

		size(500, 500);

		int index = 0;
		// stackElem = new StackElem(this, index);
		stack = new Stack(this);
	}

	@Override
	public void draw() {
		background(0x347C17);

		// int x = this.width / 2;
		// int y = this.height / 2;
		// this.ellipse(x, y, 10, 10);

		stack.run();
		// stackElem.run();
	}

	 public StackSketch() {
	
	 }

	// just for testing individual sketch
	public static void main(String[] args) {
		PApplet.main(new String[] { "--present", StackSketch.class.getName() });
	}
}
